.home {
  $f: 19.2;

  .banner {
    position: relative;
    &::before{
      content:'';
      display: block;
      position: absolute;
      left: 0;
      top:0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, .2);
    }
    img {
      width: 100%;
      display: block;
      object-fit: cover;
      height: 33vh;
    }
    .text{
      position: absolute;
      left: 0;
      width: 100%;
      bottom:30/$f+vw;
      color:white;
      padding: 0 200/$f+vw;
      .p1{
        font-size: 30/$f+vw;
        font-weight: 600;
        line-height: 1;
      }
      .des{
        font-size: 20/$f+vw;
        margin-top: 20/$f+vw;
        line-height: 1.3;
        font-weight: 200;
      }
    }
  }

  .nav_menu {
    background: #F5F5F5;
    padding: 0 200/$f+vw;
    display: flex;
    align-items: center;

    a {
      display: block;
      padding: 20/$f+vw 44/$f+vw;
      color: #222;
      font-size: 17/$f+vw;
      line-height: 1.2;
      transition: all 600ms;
      cursor: pointer;

      &:hover {
        background: #FFF;
        color: #E6001A;
      }
    }

    .on {
      background: #FFF;
      color: #E6001A;
    }

    span {
      width: 1px;
      height: 10/$f+vw;
      background: #CCC;
    }
  }

  .tabs{
    margin: 81/$f+vw 0 61/$f+vw 0;
    display: flex;
    justify-content: center;
    a{
      border: 1px solid rgba(218, 218, 218, 1);
      padding: 20/$f+vw 60/$f+vw;
      color:rgba(51, 51, 51, 1);
      font-size: 18/$f+vw;
      line-height: 1.3;
      transition: all 600ms;
      &:hover{
        background: #E94829;
        color:white;
        border-color: #E94829;
      }
    }
    .on{
      background: #E94829;
      color:white;
      border-color: #E94829;
    }
  }

  .section {
    margin: 60/$f+vw 400/$f+vw 200/$f+vw 400/$f+vw;

    .s_top {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .t {
        color: #000;
        font-size: 32/$f+vw;
      }

      .s_search {
        border-bottom: 3px solid #333;
        display: flex;
        padding: 15/$f+vw;
        align-items: center;

        p {
          color: rgba(51, 51, 51, 1);
          font-size: 15/$f+vw;
          margin: 0 50/$f+vw 0 30/$f+vw ;
        }

        input {
          color: rgba(51, 51, 51, 1);
          font-size: 15/$f+vw;
          width: 220/$f+vw;
          outline: none;
          border: none;
        }

        .btn {
          cursor: pointer;

          svg {
            display: block;
            width: 20/$f+vw;
          }
        }
      }
    }

    .toggle {
      width: 131/$f+vw;
      border-radius: 22.5/$f+vw;
      background: linear-gradient(0deg, #F5F5F5 0%, #F5F5F5 100%), #D9D9D9;
      margin: 60/$f+vw 0 30/$f+vw 0;
      display: flex;

      .item {
        width: 50%;
        height: 45/$f+vw;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 600ms;
        border-radius: 22.5/$f+vw;
        svg {
          width: 28/$f+vw;
          display: block;

          path {
            stroke: #000;
            transition: all 600ms;
          }
        }
      }

      .on {
        background: linear-gradient(0deg, #E94829 0%, #E94829 100%), #D9D9D9;
        svg{
          path{
            stroke: #fff;
          }
        }
      }
    }

    .wrap {
      .box {
        display: none;

        .pb_list {
          column-count: 3;
          column-gap: 36/$f+vw;

          .video_item {
            break-inside: avoid;
            margin-bottom: 48/$f+vw;
            display: block;
            cursor: pointer;
            .pic {
              overflow: hidden;
              img {
                width: 100%;
                height: auto;
                display: block;
                object-fit: cover;
                transition: all 600ms;
              }
            }

            .pt {
              color: #000;
              font-size: 18/$f+vw;
              line-height: 1.55;
              font-weight: 600;
              display: inline;
              pointer-events: none;
              background-image: linear-gradient(#151515, #151515);
              background-position: 0% 100%;
              background-repeat: no-repeat;
              background-size: 0% 1px;
              transition: background-size .3s;
              padding-bottom: 5px;
            }

            .time {
              color: rgba(102, 102, 102, 1);
              font-size: 13/$f+vw;
              line-height: 1;
              margin: 24/$f+vw 0 8/$f+vw 0;
            }
            &:hover{
              .pic{
                img{
                  transform: scale(1.05);
                }
              }
              .pt{
                background-size: 100% 1px;
              }
            }
          }
        }

        .list {
          display: grid;
          grid-template-columns: repeat(3, 1fr);
          gap: 50/$f+vw 30/$f+vw;
          margin: 60/$f+vw 0;

          .video_item {
            width: 100%;
            cursor: pointer;

            .pic {
              overflow: hidden;

              img {
                width: 100%;
                display: block;
                object-fit: cover;
                transition: all 600ms;
                height: 245/$f+vw;
              }
            }

            .pt {
              color: #000;
              font-size: 18/$f+vw;
              font-weight: 600;
              line-height: 1.55;
              display: inline;
              pointer-events: none;
              background-image: linear-gradient(#151515, #151515);
              background-position: 0% 100%;
              background-repeat: no-repeat;
              background-size: 0% 1px;
              transition: background-size .3s;
              padding-bottom: 5px;
            }

            .time {
              color: rgba(102, 102, 102, 1);
              font-size: 13/$f+vw;
              line-height: 1;
              margin: 24/$f+vw 0 8/$f+vw 0;
            }

            &:hover {
              .pic {
                img {
                  transform: scale(1.05);
                }
              }
              .pt{
                background-size: 100% 1px;
              }
            }
          }
        }

        .pager {
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 80/$f+vw 0;

          .prev,
          .next {
            svg {
              display: block;
              width: 23/$f+vw;
            }
          }

          a {
            img {
              margin: 0 0 0 10px;
              display: block;
            }
          }

          a:nth-last-child(2) {
            img {
              margin: 0 10px 0 0;
            }
          }

          .nums {
            display: flex;
            margin: 0 1vw;

            a {
              color: rgba(139, 139, 139, 1);
              font-size: 20/$f+vw;
              padding: 0.1vw 0.5vw;
              margin: 0 0.2vw;

            }


            .active {
              color: #FB0000;
              border-bottom: 2px solid #FB0000;
              font-weight: 600;
            }
          }

          p {
            color: rgba(51, 51, 51, 1);
            font-size: 15/$f+vw;
            margin-left: 40/$f+vw;
          }
        }
      }

      .on {
        display: block;
      }
    }
  }
  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1003;

    .close {
      position: absolute;
      right: 5%;
      top: 5%;
      cursor: pointer;
      z-index: 100;

      img {
        width: 50px;
      }
    }

    .dialog-content {
      width: 100%;

      video {
        width: 80%;
        height: 80vh;
        object-fit: cover;
        display: block;
        margin: 0 auto;
      }
    }
  }
  @media screen and (max-width: 1024px) {
    .banner {
      img {
        height: 300px;
      }
      .text{
        padding: 0 5%;
        bottom: 20px;;
        .p1{
          font-size: 24px;
        }
        .des{
          font-size: 16px;
          margin-top: 10px;
        }
      }
    }
    .nav_menu{
      padding: 0;
      flex-wrap: wrap;
      a{
        padding: 15px 10px;
        font-size: 14px;
      }
      span{
        height: 10px;
      }
    }

    .tabs{
      margin: 30px 0 0 0;
      flex-wrap: wrap;
      a{
        padding:12px 15px;
        font-size: 14px;
      }
    }

    .section {
      margin: 30px 5% 60px 5%;

      .s_top {
        flex-direction: column;

        .t {
          font-size: 24px;
        }

        .s_search {
          padding: 15px;
          width: 100%;

          p {
            font-size: 16px;
            margin: 0 20px 0 15px;
          }

          input {
            font-size: 16px;
            width: 70%;
          }

          .btn {
            svg {
              width: 20px;
            }
          }
        }
      }

      .toggle{
        width: 120px;
        margin: 30px 0;
        border-radius: 20px;
        .item{
          height: 35px;
          border-radius: 20px;
          svg{
            width: 20px;
          }
        }
      }
      .wrap{
        .box{
          .pb_list{
            column-count: 2;
            gap: 15px;
            .video_item{
              .pt{
                font-size: 18px;
              }
              .time{
                font-size: 16px;
              }
            }
          }
          .list {
            grid-template-columns: repeat(1, 1fr);
            gap: 25px;
            margin: 30px 0;
            .video_item{
              .pic{
                margin-bottom: 10px;
                img{
                  height: 200px;
                }
              }
              .pt{
                font-size: 18px;
              }
              .time{
                font-size: 16px;
              }
            }
          }
          .pager {
    
            .prev,
            .next {
              svg {
                width: auto;
              }
            }
    
            .nums {
              margin: 0 10px;
    
              a {
                font-size: 16px;
                padding: 3px 5px;
                margin: 0 5px;
              }
            }
            p{
              font-size: 14px;
            }
          }
        }
      }
    }
    .dialog {
      .close {
        top: 80px;

        img {
          width: 30px;
        }
      }

      .dialog-content {
        video {
          height: 50vh;
        }
      }
    }
  }
}